<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="__TMPL__Public/assets/book_static/css/base.css" />
<link rel="stylesheet" type="text/css" href="__TMPL__Public/assets/book_static/css/jquery.dialog.css" />
<link rel="stylesheet" href="__TMPL__Public/assets/book_static/css/notice.css" />
<title>图书库存管理系统</title>
</head>

<body>


<div class="exitDialog">
	<div class="dialog-content">
    	<div class="ui-dialog-icon_error"></div>
        <div class="ui-dialog-text">
        	<p class="dialog-content"><present name="message"><?php echo($message); ?><else/><?php echo($error); ?></present></p>
            <p class="tips">如果是请点击“确定”，否则点“取消”</p>
            <div class="buttons">
                <a id="href" href="<?php echo($jumpUrl); ?>"><input type="button" class="button long2 ok" value="确定" /></a>
                <a id="href" href="<?php echo($jumpUrl); ?>"><input type="button" class="button long2 normal" value="取消" /></a>
            </div>
        </div>
    </div>
</div>

<span id="wait" style="display:none"><?php echo($waitSecond); ?></span>

</body>
<script type="text/javascript" src="__TMPL__Public/assets/book_static/js/jquery.js"></script>
<script type="text/javascript" src="__TMPL__Public/assets/book_static/js/common.js"></script>
<script type="text/javascript" src="__TMPL__Public/assets/book_static/js/core.js"></script>
<script type="text/javascript" src="__TMPL__Public/assets/book_static/js/jquery.dialog.js"></script>
<script type="text/javascript" src="__TMPL__Public/assets/book_static/js/index.js"></script>
<script type="text/javascript">
(function(){
var wait = document.getElementById('wait'),href = document.getElementById('href').href;
var interval = setInterval(function(){
	var time = --wait.innerHTML;
	if(time <= 0) {
		location.href = href;
		clearInterval(interval);
	};
}, 1000);
})();

$('.exitDialog').Dialog({
	title:'提示信息',
	autoOpen: false,
	width:400,
	height:200
});

$('.exitDialog').Dialog('open');


</script>
</html>
